# -*- coding: utf-8 -*-
import xmlrpclib
from pprint import pprint

uid=1
pwd="1989112"
dbname="11"
tcp_port="8069"
sock=xmlrpclib.ServerProxy("http://127.0.0.1:%s/xmlrpc/object" % tcp_port)

model="nmbw800.dayrecord"
method="addItemByJson"

ids='{"Addr":200030001,"pignum":22222222,"Date":"2016-03-15","Amount":200,"Actual":100}'
result = sock.execute(dbname, uid, pwd,
                      model,method ,
                      ids)
print "\n==== %s of %s ====" % (model, method)
pprint(result)